package com.bright.hxj.cwduijie.pojo.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import javax.persistence.*;

/**
 * @Author  hxj
 * @Date 2024-07-18 16:45:17 
 * @Description  自定义资产分类
 */

@Data
@Entity
@Table(name ="DJ_ZDYZCFL")
public class CustomAssetCode implements Serializable {

	private static final long serialVersionUID =  346976164796900189L;

	/**
	 * 主键ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@JsonIgnore
   	@Column(name = "ID")
	private Integer ID;

	/**
	 * 资产分类的唯一标识
	 */
	@NotBlank
	@Length(max = 36)
   	@Column(name = "DATA_KEY")
	private String DATA_KEY;

	/**
	 * 账套所属组织的统一社会信用代码
	 */
	@NotBlank
	@Length(max = 18)
   	@Column(name = "TYSHXYDM")
	private String TYSHXYDM;

	/**
	 * 上级资产分类编码
	 */
	@NotBlank
	@Length(max = 9)
	@Column(name = "SJ_ZCLX_BM")
	private String SJ_ZCLX_BM;

	/**
	 * 资产分类编码
	 */
	@NotBlank
	@Length(max = 9)
   	@Column(name = "ZCLX_BM")
	private String ZCLX_BM;

	/**
	 * 分类名称
	 */
	@NotBlank
	@Length(max = 6)
   	@Column(name = "MC")
	private String MC;

	/**
	 * 分类层级
	 */
	@NotNull
   	@Column(name = "LX_CJ")
	private Integer LX_CJ;

	@JsonIgnore
   	@Column(name = "opType")
	private Integer opType;

	@JsonIgnore
   	@Column(name = "sjjhbz")
	private Integer sjjhbz;

	@JsonIgnore
   	@Column(name = "taskId")
	private String taskId;

}
